//
//  main.m
//  Homework_01
//
//  Created by dllo on 16/2/24.
//  Copyright © 2016年 Apon. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Dog.h"
#import "Cat.h"
#import "Brid.h"
#import "Kangroo.h"
#import "Panda.h"
#import "Tiger.h"
#import "Spider.h"
#import "Turtle.h"
#import "Lion.h"
#import "Monkey.h"
#import "Duck.h"
#import "Pig.h"
#import "Sheep.h"
#import "Rooster.h"
#import "Elephant.h"
#import "Giraffe.h"
#import "Mouse.h"
#import "Teacher.h"
#import "Car.h"
#import "Book.h"
#import "Phone.h"
#import "Computer.h"
#import "Fish.h"
#import "Pen.h"
#import "Country.h"
int main(int argc, const char * argv[]) {

#if 0
    Dog *do1 = [[Dog alloc] init];
    do1->_name = @"张三";
    do1->_age = 18;
    do1->_breed = @"哈士奇";
    do1->_color = @"白色";
    do1->_sex = @"雄性";
    NSLog(@"name: %@", do1->_name);
    [do1 info];
    Dog *do2 = [[Dog alloc] init];
    do2->_name = @"张小三";
    do2->_age = 15;
    do2->_breed = @"沙皮";
    do2->_color = @"黄色";
    do2->_sex = @"雌性";
    NSLog(@"name: %@", do2->_name);
    [do2 info];
    
    Cat *ca1 = [[Cat alloc] init];
    ca1->_name = @"李四";
    ca1->_age = 18;
    ca1->_weight = 348.5;
    ca1->_height = 23723;
    ca1->_sex = @"雄性";
    NSLog(@"name: %@", ca1->_name);
    [ca1 info];
    Cat *ca2 = [[Cat alloc] init];
    ca2->_name = @"李小四";
    ca2->_age = 15;
    ca2->_weight = 2345;
    ca2->_height = 123.5;
    ca2->_sex = @"雌性";
    NSLog(@"name: %@", ca2->_name);
    [ca2 info];
    
    Brid *br1 = [[Brid alloc] init];
    br1->_name = @"leo";
    br1->_color = @"黄色";
    br1->_weight = 34.5;
    br1->_height = 23;
    br1->_sex = @"雄性";
    NSLog(@"name: %@", br1->_name);
    [br1 info];
    Brid *br2 = [[Brid alloc] init];
    br2->_name = @"mike";
    br2->_color = @"黑色";
    br2->_weight = 2;
    br2->_height = 23.5;
    br2->_sex = @"雌性";
    NSLog(@"name: %@", br2->_name);
    [br2 info];
    
    Kangroo *ka1 = [[Kangroo alloc] init];
    ka1->_name = @"ss";
    ka1->_color = @"黄色";
    ka1->_weight = 34.5;
    ka1->_height = 23;
    ka1->_age = 16;
    NSLog(@"name: %@", ka1->_name);
    [ka1 info];
    Kangroo *ka2 = [[Kangroo alloc] init];
    ka2->_name = @"ll";
    ka2->_color = @"黄色";
    ka2->_weight = 2;
    ka2->_height = 23.5;
    ka2->_age = 25;
    NSLog(@"name: %@", ka2->_name);
    [ka2 info];
    
    Panda *pa1 = [[Panda alloc] init];
    pa1->_name = @"ys";
    pa1->_sex = @"雄性";
    pa1->_weight = 34.5;
    pa1->_height = 233;
    pa1->_age = 16;
    NSLog(@"name: %@", pa1->_name);
    [pa1 info];
    Panda *pa2 = [[Panda alloc] init];
    pa2->_name = @"tl";
    pa2->_sex = @"雌性";
    pa2->_weight = 24;
    pa2->_height = 233.5;
    pa2->_age = 25;
    NSLog(@"name: %@", pa2->_name);
    [pa2 info];
    
    Tiger *ti1 = [[Tiger alloc] init];
    ti1->_name = @"hey";
    ti1->_sex = @"雄性";
    ti1->_weight = 34.5;
    ti1->_stripe = @"条纹";
    ti1->_age = 16;
    NSLog(@"name: %@", ti1->_name);
    [ti1 info];
    Tiger *ti2 = [[Tiger alloc] init];
    ti2->_name = @"girl";
    ti2->_sex = @"雌性";
    ti2->_weight = 245;
    ti2->_stripe = @"条纹";
    ti2->_age = 23;
    NSLog(@"name: %@", ti2->_name);
    [ti2 info];
    
    Spider *sp1 = [[Spider alloc] init];
    sp1->_breed = @"食鸟蛛";
    sp1->_sex = @"雄性";
    sp1->_height = 34.5;
    sp1->_color = @"黑色";
    sp1->_legs = 8;
    NSLog(@"name: %@", sp1->_breed);
    [sp1 info];
    Spider *sp2 = [[Spider alloc] init];
    sp2->_breed = @"蜘蛛";
    sp2->_sex = @"雌性";
    sp2->_height = 25;
    sp2->_color = @"灰色";
    sp2->_legs = 8;
    NSLog(@"name: %@", sp2->_breed);
    [sp2 info];
    
    Turtle *tu1 = [[Turtle alloc] init];
    tu1->_breed = @"海龟";
    tu1->_sex = @"雄性";
    tu1->_weight = 344.5;
    tu1->_eggs = 18;
    tu1->_age = 56;
    NSLog(@"name: %@", tu1->_breed);
    [tu1 info];
    Turtle *tu2 = [[Turtle alloc] init];
    tu2->_breed = @"陆行龟";
    tu2->_sex = @"雌性";
    tu2->_weight = 245;
    tu2->_eggs = 78;
    tu2->_age = 68;
    NSLog(@"name: %@", tu2->_breed);
    [tu2 info];
    
    Lion *li1 = [[Lion alloc] init];
    li1->_breed = @"非洲狮";
    li1->_sex = @"雄性";
    li1->_weight = 340.5;
    li1->_height = 58;
    li1->_color = @"黄色";
    NSLog(@"name: %@", li1->_breed);
    [li1 info];
    Lion *li2 = [[Lion alloc] init];
    li2->_breed = @"美洲狮";
    li2->_sex = @"雌性";
    li2->_weight = 250;
    li2->_height = 68;
    li2->_color = @"黄色";
    NSLog(@"name: %@", li2->_breed);
    [li2 info];
    
    Monkey *mo1 = [[Monkey alloc] init];
    mo1->_breed = @"金丝猴";
    mo1->_sex = @"雄性";
    mo1->_intelligence = @"聪明";
    mo1->_age = 28;
    mo1->_color = @"黄色";
    NSLog(@"name: %@", mo1->_breed);
    [mo1 info];
    Monkey *mo2 = [[Monkey alloc] init];
    mo2->_breed = @"大猩猩";
    mo2->_sex = @"雌性";
    mo2->_intelligence = @"聪明";
    mo2->_age = 18;
    mo2->_color = @"黑色";
    NSLog(@"name: %@", mo2->_breed);
    [mo2 info];
    
    Duck *du1 = [[Duck alloc] init];
    du1->_name = @"肥鸭";
    du1->_sex = @"雄性";
    du1->_height = 25;
    du1->_weight = 28;
    du1->_color = @"黄色";
    NSLog(@"name: %@", du1->_name);
    [du1 info];
    Duck *du2 = [[Duck alloc] init];
    du2->_name = @"唐老鸭";
    du2->_sex = @"雌性";
    du2->_height = 27;
    du2->_weight = 18;
    du2->_color = @"黄色";
    NSLog(@"name: %@", du2->_name);
    [du2 info];
    
    Pig *pi1 = [[Pig alloc] init];
    pi1->_breed = @"家猪";
    pi1->_sex = @"雄性";
    pi1->_legs = 4;
    pi1->_weight = 28;
    pi1->_color = @"黄色";
    NSLog(@"name: %@", pi1->_breed);
    [pi1 info];
    Pig *pi2 = [[Pig alloc] init];
    pi2->_breed = @"野猪";
    pi2->_sex = @"雌性";
    pi2->_legs = 4;
    pi2->_weight = 18;
    pi2->_color = @"黄色";
    NSLog(@"name: %@", pi2->_breed);
    [pi2 info];
    
    Sheep *sh1 = [[Sheep alloc] init];
    sh1->_name = @"黑棉羊";
    sh1->_sex = @"雄性";
    sh1->_height = 41;
    sh1->_weight = 28;
    sh1->_color = @"黑色";
    NSLog(@"name: %@", sh1->_name);
    [sh1 info];
    Sheep *sh2 = [[Sheep alloc] init];
    sh2->_name = @"绵羊";
    sh2->_sex = @"雌性";
    sh2->_height = 43;
    sh2->_weight = 38;
    sh2->_color = @"白色";
    NSLog(@"name: %@", sh2->_name);
    [sh2 info];
    
    Rooster *ro1 = [[Rooster alloc] init];
    ro1->_name = @"大骨鸡";
    ro1->_sex = @"雄性";
    ro1->_height = 21;
    ro1->_weight = 15;
    ro1->_featherColor = @"黑色";
    NSLog(@"name: %@", ro1->_name);
    [ro1 info];
    Rooster *ro2 = [[Rooster alloc] init];
    ro2->_name = @"公鸡";
    ro2->_sex = @"雄性";
    ro2->_height = 23;
    ro2->_weight = 10;
    ro2->_featherColor = @"红色";
    NSLog(@"name: %@", ro2->_name);
    [sh2 info];
    
    Elephant *el1 = [[Elephant alloc] init];
    el1->_name = @"非洲象";
    el1->_sex = @"雄性";
    el1->_height = 316;
    el1->_weight = 358;
    el1->_lengthOfNose = 10;
    NSLog(@"name: %@", el1->_name);
    [el1 info];
    Elephant *el2 = [[Elephant alloc] init];
    el2->_name = @"大象";
    el2->_sex = @"雄性";
    el2->_height = 283;
    el2->_weight = 410;
    el2->_lengthOfNose = 15;
    NSLog(@"name: %@", el2->_name);
    [el2 info];
    
    Giraffe *gi1 = [[Giraffe alloc] init];
    gi1->_name = @"非洲长颈鹿";
    gi1->_sex = @"雄性";
    gi1->_height = 316;
    gi1->_weight = 358;
    gi1->_legs = 4;
    NSLog(@"name: %@", gi1->_name);
    [gi1 info];
    Giraffe *gi2 = [[Giraffe alloc] init];
    gi2->_name = @"长颈鹿";
    gi2->_sex = @"雄性";
    gi2->_height = 283;
    gi2->_weight = 410;
    gi2->_legs = 4;
    NSLog(@"name: %@", gi2->_name);
    [gi2 info];
    
    Mouse *mou1 = [[Mouse alloc] init];
    mou1->_name = @"小白鼠";
    mou1->_sex = @"雄性";
    mou1->_height = 36;
    mou1->_weight = 38;
    mou1->_color = @"白色";
    NSLog(@"name: %@", mou1->_name);
    [mou1 info];
    Mouse *mou2 = [[Mouse alloc] init];
    mou2->_name = @"米老鼠";
    mou2->_sex = @"雄性";
    mou2->_height = 23;
    mou2->_weight = 40;
    mou2->_color = @"黑色";
    NSLog(@"name: %@", mou2->_name);
    [mou2 info];
    
    Teacher *teacher1 = [[Teacher alloc] init];
    Teacher *teacher2 = [[Teacher alloc] init];
    teacher1->_name = @"李明";
    teacher1->_age = 28;
    teacher1->_salary = 1000;
    teacher1->_sex = @"男";
    teacher1->_height = 170;
    teacher2->_name = @"曹原";
    teacher2->_age = 34;
    teacher2->_salary = 1000;
    teacher2->_sex = @"男";
    teacher2->_height = 175;
    [teacher1 info];
    [teacher2 info];
    
    Car *car1 = [[Car alloc] init];
    Car *car2 = [[Car alloc] init];
    car1->_name = @"宝马";
    car1->_number = 63;
    car1->_cost = 100;
    car1->_height = 36.5;
    car1->_width = 26.5;
    car2->_name = @"奔驰";
    car2->_number = 56;
    car2->_cost = 500;
    car2->_height = 43.5;
    car2->_width = 56.5;
    [car1 info];
    [car2 info];
    
    Book *book1 = [[Book alloc] init];
    Book *book2 = [[Book alloc] init];
    book1->_name = @"c语言";
    book1->_author = @"谭国强";
    book1->_money = 35;
    book1->_year = 1990;
    book1->_page = 200;
    book2->_name = @"JAVA语言";
    book2->_author = @"林树泽";
    book2->_money = 45;
    book2->_year = 1999;
    book2->_page = 351;
    [book1 info];
    [book2 info];
    
    Phone *phone1 = [[Phone alloc] init];
    Phone *phone2 = [[Phone alloc] init];
    phone1->_name = @"苹果";
    phone1->_hometown = @"北京";
    phone1->_pexel = 1200;
    phone1->_price = 6400;
    phone1->_size = 5.5;
    phone2->_name = @"三星";
    phone2->_hometown = @"上海";
    phone2->_pexel = 800;
    phone2->_price = 5500;
    phone2->_size = 6.0;
    [phone1 info];
    [phone2 info];
    
    Computer *com1 = [[Computer alloc] init];
    Computer *com2 = [[Computer alloc] init];
    com1->_name = @"imac";
    com1->_price = 8244;
    com1->_size = 13.3;
    com1->_memory = 4;
    com1->_madePlace = @"北京";
    com2->_name = @"华硕";
    com2->_price = 4244;
    com2->_size = 15.3;
    com2->_memory = 4;
    com1->_madePlace = @"大庆";
    [com1 info];
    [com2 info];
    
    Fish *fish1 = [[Fish alloc] init];
    Fish *fish2 = [[Fish alloc] init];
    fish1->_name = @"鲸鱼";
    fish1->_locate = @"大海";
    fish1->_height = 12.5;
    fish1->_width = 15;
    fish1->_longth = 23.5;
    fish2->_name = @"鲨鱼";
    fish2->_locate = @"大海";
    fish2->_height = 22.5;
    fish2->_width = 15.3;
    fish2->_longth = 33.5;
    [fish1 info];
    [fish2 info];
    
    Pen *pen1 = [[Pen alloc] init];
    Pen *pen2 = [[Pen alloc] init];
    pen1->_name = @"中性笔";
    pen1->_color = @"黑色";
    pen1->_longth = 3;
    pen1->_price = 2;
    pen1->_width = 0.5;
    pen2->_name = @"铅笔";
    pen2->_color = @"黑色";
    pen2->_longth = 5;
    pen2->_price = 1;
    pen2->_width = 0.7;
    [pen1 info];
    [pen2 info];
    
    Country *cou1 = [[Country alloc] init];
    Country *cou2 = [[Country alloc] init];
    cou1->_name = @"china";
    cou1->_capital = @"北京";
    cou1->_area = 1600;
    cou1->_longth = 800;
    cou1->_width = 200;
    cou2->_name = @"America";
    cou2->_capital = @"华盛顿";
    cou2->_area = 900;
    cou2->_longth = 300;
    cou2->_width = 300;
    [cou1 info];
    [cou2 info];
    
#endif
    
    Dog *do1 = [[Dog alloc] initWithName:@"刘鸣" age:35 sex:@"male" color:@"黄色" breed:@"哈士奇"];
    [do1 info];
    
    Cat *ca1 = [[Cat alloc] initWithName:@"刘鸣" age:20 weight:20 height:20 sex:@"男"];
    [ca1 info];
    
    
    
    
    
    
    
    
    
    
    
    return 0;
}
